<template>
  <div class="result-card" :style="`border-color: ${color}`">
    <div class="top">
      {{ title }}
    </div>
    <div class="card-c" v-if="list.length !== 0">
      <div class="node" v-for="node in list" :key="node.title">
        <div class="node-title">{{ node.title }}</div>
        <div class="node-c">
          {{ node.desc }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: String,
    color: {
      type: String,
      default: "#8bde8a"
    },
    list: {
      type: Array,
      default: () => {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  methods: {},
  mounted: function() {},
  components: {}
};
</script>
<style lang="scss" scoped>
.result-card {
  width: 100%;
  border-radius: 6px;
  border-left: 4px solid;
  padding: 0 26px 26px;
  background-color: #262937;

  .top {
    width: 100%;
    height: 55px;
    border-bottom: 1px solid #1c1e2e;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    justify-content: space-between;
  }
  .card-c {
    .node {
      width: 100%;
      height: 134px;
      border-bottom: 1px solid #1c1e2e;

      .node-title {
        font-size: 12px;
        color: #fff;
        display: flex;
        align-items: center;
        height: 50px;
      }
      .node-c {
        color: #787dab;
        font-size: 12px;
      }
    }
  }
}
</style>
